package com.test;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class testInterceptor implements InvocationHandler {
    private Persion persion = new Persion();

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("代理");
        System.out.println(proxy);
        method.invoke(null);
        return method.invoke(null);
    }
}
